package cn.risebd.wechat.core;

/**
 * @category 异步执行函数
 * @author 喝咖啡的蚂蚁
 * @copyright risebd.cn
 *
 * @param <T>
 */
abstract class AsyncFunction<T> {

	Callback<T> cb;

	AsyncFunction(Callback<T> cb) {
		this.cb = cb;
	}

	public abstract T execute() throws Exception;
}